/**
 * 
 */
package com.moo2u2.android.oaktononthego.locate;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;
import com.moo2u2.android.oaktononthego.shared.ColleagueProxy;

/**
 * @author firewalker
 * 
 */
public class ColleagueOverlayItem extends OverlayItem {

    private ColleagueProxy colleague;

    /**
     * Creates a new overlay item using a colleague's details.
     * 
     * @param colleague
     *            Colleague of which to use the details to populate this
     *            overlay.
     */
    public ColleagueOverlayItem(ColleagueProxy colleague) {
        super(new GeoPoint(colleague.getLatitude(), colleague.getLongitude()),
                colleague.getName(), colleague.getSnippet() + "\n\nPh: "
                        + colleague.getPhone());
        this.colleague = colleague;
    }

    public ColleagueProxy getColleague() {
        return colleague;
    }

}
